package com.example.jpa.projections;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.repository.query.Param;

public interface PersonRepository extends JpaRepository<Person,Long> {

    PersonOnlyNameSexDto findByNameAndSex(String name,String sex);

    PersonOnlyNameEmail findByNameAndEmail(@Param(value = "name") String name, @Param(value = "email") String email);
}
